<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        .con{
            width: 960px;
            height: 40px;
            border: 1px solid #d1d1d1;
            /*去掉间隙*/
            font-size: 0px;
            /*子元素左右居中*/
            text-align: center;
            
        }

        .con a,.con span{
            color: #3d3d3d;
            font-size: 14px;
            line-height:40px; 
        }

        .con a{
            text-decoration: none;
        }

        .con a:hover{
            color: red;
        }

        .con span{
            margin: 0 22px 0 21px;
        }
    
    </style>
</head>
<body>
    

    <div class="con">
        <a href="">首 页</a>
        <span>|</span>
        <a href="">网站建设</a>
        <span>|</span>
        <a href="">程序开发</a>
        <span>|</span>
        <a href="">网络营销</a>
        <span>|</span>
        <a href="">企业VI</a>
        <span>|</span>
        <a href="">案例展示</a>
        <span>|</span>
        <a href="">联系我们</a>
    </div>


</body>
</html>